Skip to content

fix(CNavGroup): set default height state to 0 #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

jasperfirecai2
Copy link
Contributor

@jasperfirecai2 jasperfirecai2 commented Sep 26, 2024

Closes #410
The root cause of the issue is that height is undefined while the transition state is exiting and thus the style sets height to undefined. Then when the transition starts on opening the dropdown, the height is instantly set to auto meaning there's no startpoint to transition from.
This fix is a suggestion. This can also be solved using props or more complex style conditions.

@mrholek mrholek merged commit 5c76876 into coreui:main Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CNavGroup: First time opening dropdown pops items into existence instead of playing transition animation
2 participants